From 1d4f277da8ecdd0e858bb12d37f9c01ce5e3b266 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Fri, 13 Apr 2007 16:54:03 +0100 Subject: [PATCH] Install dtd into correct place signed-off-by: Tom Wilkie --- tools/python/Makefile | 7 +++++-- tools/python/xen/xm/xenapi_create.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tools/python/Makefile b/tools/python/Makefile index 309c815352..469a4e9af0 100644 --- a/tools/python/Makefile +++ b/tools/python/Makefile @@ -56,13 +56,16 @@ refresh-po: $(POTFILE) .PHONY: install ifndef XEN_PYTHON_NATIVE_INSTALL install: LIBPATH=$(shell PYTHONPATH=xen/util python -c "import auxbin; print auxbin.libpath()") -install: install-messages +install: install-messages install-dtd CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --home="$(DESTDIR)/usr" --prefix="" --force --install-lib="$(DESTDIR)$(LIBPATH)/python" else -install: install-messages +install: install-messages install-dtd CC="$(CC)" CFLAGS="$(CFLAGS)" python setup.py install --root="$(DESTDIR)" --force endif +install-dtd: all + $(INSTALL) -m 755 xen/xm/create.dtd $(DESTDIR)/usr/share/xen + install-messages: all if which $(MSGFMT) >/dev/null ; then \ mkdir -p $(DESTDIR)$(NLSDIR); \ diff --git a/tools/python/xen/xm/xenapi_create.py b/tools/python/xen/xm/xenapi_create.py index 19ced84460..4e8d6c4603 100644 --- a/tools/python/xen/xm/xenapi_create.py +++ b/tools/python/xen/xm/xenapi_create.py @@ -72,7 +72,7 @@ class xenapi_create: def __init__(self): self.DEFAULT_STORAGE_REPOSITORY = get_default_SR() - self.dtd = "/usr/lib/python/xen/xm/create.dtd" + self.dtd = "/usr/share/xen/create.dtd" def create(self, filename=None, document=None, skipdtd=False): """ -- 2.30.2